Vocabulary-based transformation